<?php

namespace StudyBuddy\Acl;

use \StudyBuddy\Interfaces\RoleInterface;

/**
 * Acl Role class
 *
 */
class Role implements RoleInterface {

    /**
     * Unique id of Role
     *
     * @var string
     */
    protected $_roleId;

    /**
     * Sets the Role identifier
     *
     * @param  string $id
     * @return void
     */
    public function __construct($roleId) {
        $this->_roleId = (string) $roleId;
    }

    /**
     * Defined by Zend_Acl_Role_Interface; returns the Role identifier
     *
     * @return string
     */
    public function getRoleId() {
        return $this->_roleId;
    }

    /**
     * This method was not originally in
     * Zend_Acl library
     * StudyBuddy project
     * (non-PHPdoc)
     * @see StudyBuddy\Interfaces.RoleInterface::setRoleId()
     */
    public function setRoleId($role) {
        $this->_roleId = $role;
    }

}
